#include "menu.h"
#include "ui_menu.h"
#include "creusator.h"
#include "mainwindow.h"
#include <QLayout>

Menu::Menu(QWidget *parent) :
    QMainWindow(parent),
    m_ui(new Ui::Menu)
{
    m_ui->setupUi(this);
}

Menu::~Menu()
{
    delete m_ui;
}


void Menu::changeEvent(QEvent *e)
{
    QMainWindow::changeEvent(e);
    switch (e->type()) {
    case QEvent::LanguageChange:
        m_ui->retranslateUi(this);
        break;
    default:
        break;
    }
}

void Menu::printDialogBuilding() {
    DialogBuilding *d = new DialogBuilding();
    d->exec();
    delete d;
}
void Menu::printMainWindow(){
    MainWindow *w = new MainWindow();
    w->showNormal();
}
void Menu::printOptions(){
    Options *o = new Options();
    o->exec();
}
